import { Manager } from "./types";

type Method = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";

export interface Response<T = any> {
  success: boolean;
  message?: string;
  object?: T;
  token?: string;
  query?: {
    count: number;
    limit: number;
    offset: number;
    page: number;
    results: Array<T>;
  };
  errors?: Record<string, Array<string>>;
}

export interface Router {
  path: string;
  method: Method;
  data?: any;
  params?: any;
  result: Response;
}

const ManagerLogin: Router = {
  path: "/manager/login",
  method: "POST",
  data: {
    email: "",
    password: "",
  },
  result: {
    success: true,
    message: "",
    object: {},
    token: "",
  },
};
